package com.moerlong.platform.service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.sidecar.EnableSidecar;
//允许以springboot方式启动，开启内部自带的web服务器
@SpringBootApplication
//允许作为客户端注册到服务。可以被其他服务发现
@EnableDiscoveryClient
//允许调用其他服务
@EnableFeignClients
//允许使用断路器
@EnableCircuitBreaker
//允许查看断路器控制台
@EnableHystrixDashboard
//允许接入其他语言 如php .net  go等
@EnableSidecar

//该服务提供异构语言接口调用，如php .net
public class AppNetDemoApplication {
    //main函数 启动服务
	public static void main(String[] args) {
		SpringApplication.run(AppNetDemoApplication.class, args);
	}
}
